<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: treepodia.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

if($_GET['action'] == 'new_product') { ?>
	<div id="treep">
		<script type="text/javascript">
			$(function() {$('#treepodia_tabs').tabs({fx:{opacity:'toggle'}});});
		</script>
		<p><?php echo PRODUCT_TREEPODIA_DESC; ?></p>
		<table width="100%">
			<tr>
				<td class="main">Dieses Produkt in Treepodia-Datenfeed aufnehmen?: <?php echo draw_selection_field('products_treepodia', 'checkbox', '1',$pInfo->products_treepodia==1 ? true : false); ?></td>
			</tr>
		</table><br />
		<div id="treepodia_tabs">
			<ul>
				<?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?>
					<li><a href="#treep_language_<?php echo $i; ?>">
						<span><img src="../lang/<?php echo $languages[$i]['directory'].'/'.$languages[$i]['image']; ?>" alt="" /> <?php echo $languages[$i]['name'] ?></span>
						</a>
					</li>
				<?php } ?>
			</ul>
			<?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?>
				<div id="treep_language_<?php echo $i; ?>">
					<table width="100%">
						<tr>
							<td class="main" width="30%">Artikel-Beschreibung 1:</td>
							<td class="main"><?php echo get_products_treepodia($pInfo->products_id, 1,$languages[$i]['id']); ?></td>
						</tr>
						<tr>
							<td class="main">Artikel-Beschreibung 2:</td>
							<td class="main"><?php echo get_products_treepodia($pInfo->products_id, 2,$languages[$i]['id']); ?></td>
						</tr>
						<tr>
							<td class="main">Artikel-Beschreibung 3:</td>
							<td class="main"><?php echo get_products_treepodia($pInfo->products_id, 3,$languages[$i]['id']); ?></td>
						</tr>
						<tr>
							<td class="main">Artikel-Beschreibung 4:</td>
							<td class="main"><?php echo get_products_treepodia($pInfo->products_id, 4,$languages[$i]['id']); ?></td>
						</tr>
						<tr>
							<td class="main">Artikel-Beschreibung 5:</td>
							<td class="main"><?php echo get_products_treepodia($pInfo->products_id, 5,$languages[$i]['id']); ?></td>
						</tr>
					</table>
				</div>
			<?php } ?>
		</div>
	</div>
<?php } ?>